/**
 * @author Dave
 */
// reference local blank image
Ext.BLANK_IMAGE_URL = 'lib/client/ext-2.0/resources/images/default/s.gif';

// create namespaces
Ext.namespace('cmx', 'cmx.dialog', 'cmx.panel');

cmx.AppLogin = function(){
	var loginDialog;
	
	var pub = {
		init: function() {
			// Init the singleton.  Any tag-based quick tips will start working.
			Ext.QuickTips.init();

			loginDialog = new cmx.dialog.LoginDialog({
				title: 'Welcome to Langrage',
				closable: false,
				draggable: false,
				resizable: false,
				width: 350,
				authUrl: 'includes/AuthenticationService.php?mn=authenticate'
			});
			
			// yield to allow for browser to complete layout
			setTimeout(function(){
				loginDialog.show()
			}, 0);
		}
	}
	
	return pub;
};